<?php

namespace App\Http\Requests\Admin;

class PermissionRequest extends Request
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name'=>'required|string|min:3',
            'display_name'=>'required|string|min:3',
            'path'=>'required|string|min:3',
            'component'=>'required|string|min:3'
        ];
    }
}
